public class PersonTest {
    public static void main(String[] args) {
        Person person = new Person();
//        String s = person.name;
//        System.out.println(s);
        person.name = "张三";
        System.out.println(person.name);
        System.out.println(person.age);
        System.out.println(person.gender);  //先执行实力初始化器，最后执行构造方法，所以把实力初始化器里的gender = ‘女’ 覆盖了，最后结果是男


        person.setNumber(12345);
        System.out.println(person.getNumber() );
    }
}
